home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / SCRIPTZ / AWAY2.ZIP / Away.txt
Text File  |  1997-03-16  |  6KB  |  117 lines

  1. ~~~~~~~~~~~~~~~~~~~~~~~~~~~ TriStar [Away Add-On] ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2.  
  3. This add-on lets you do multiple things when you are away. This is includes:
  4. - Prompt for a message saying why you are away
  5. - activates your pager (instructions below)
  6. - tells everyone the time it was when you left in AM/PM format
  7. - Uses color (Which means this add-on works only with v4.72)
  8. - Advertises FServer (instructions below)
  9. - Much more!
  10.  
  11. Here are a few rules to follow when using scripts:
  12. - You are free to edit it for your personal use as long as you do not deleate
  13.   and/or tamper with anything that looks like 15,15 14,14 12,1 ][11,1 
  14.   TriStar12,1 ][ 14,14 15,15 , It is my personal tag that gives me 
  15.   credit for what I have done.
  16. - I am not held responsible for any type of damages done to yoru computer 
  17.   and/or the mIRC program.
  18.  
  19. Well, now that I have that out of the way, here is what you need to get 
  20. started:
  21. - mIRC v4.72
  22. - a command in aliases for AM/PM time (instructions below)
  23. - couple of minutes
  24.  
  25. These are optional:
  26. - A FServer (Instructions Below)
  27. - A pager (Instructions Below) 
  28.  
  29. Instructions for required/optional stuff:
  30.  
  31. AM/PM TIME
  32. Put the following in to your Aliases:
  33.  
  34. atime {
  35.   set %atime $gettok($time,1,58)
  36.   if (%atime >= 13) { 
  37.     %atime = %atime - 12 
  38.     return %atime $+ : $+ $gettok($time,2,58) pm
  39.   }
  40.   else if (%atime == 12) {
  41.     return %atime $+ : $+ $gettok($time,2,58) pm 
  42.   } 
  43.   else if (%atime == 0) { 
  44.     %atime = %atime + 12 
  45.     return %atime $+ : $+ $gettok($time,2,58) am
  46.   } 
  47.   else { 
  48.     return %atime $+ : $+ $gettok($time,2,58) am
  49.   } 
  50. }
  51.  
  52. That's it!
  53.  
  54. FSERVER
  55. Put the following in to your Remotes -> Events:
  56. (Make sure listening is checked in the upper-right corner)
  57.  
  58. 1:on text:!<NICK>:#:/fserve $nick 300 <LOCATION> <WELCOME>
  59.  
  60. Fill in <NICK> with your Nick, this will trigger the FServer.  Fill in 
  61. <LOCATION> with the location of the fserver (i.e. C:\fserver).  Fill in
  62. <WELCOME> with a welcome file (i.e. C:\fserver\welcome.txt).
  63.  
  64. PAGER
  65. Put the following in to your Remotes -> Commands:
  66.  
  67. (Make sure listening is checked in the upper-right corner)
  68.  
  69. #pager start 
  70. 1:page:/wavplay <SOUND> | /notice $me You were paged by $nick | /write pages.txt $fulldate < $+ $nick $+ > $parms 
  71. #pager end
  72.  
  73.  
  74. Replace <SOUND> with the location of a wav (i.e. C:\alert.wav).  It is 
  75. activated by someone typing /ctcp <YOURNICK> page <A short message> (Replace
  76. <YOURNICK> with your nick, the short message is for the person paging you.).
  77. It will then write a .txt file named pages.txt and will tell you what the 
  78. person said.
  79.  
  80. Now with the actual away stuff:
  81. Put this in Aliases:
  82. /setaway /ame has been marked away at 12 $atime  15,15 14,14 12,1 ][11,1 TriStar12,1 ][ 14,14 15,15  | /ame has his pager 8,1 [ON]  and can be activated by typing,2 /ctcp <NICKAWAY> page <your message here>  15,15 14,14 12,1 ][11,1 TriStar12,1 ][ 14,14 15,15 
  83. /away.4.5 /IF (%time.away >= 60) { %TimeAway = %time.away / 60 } | /ame has been away from his computer for 9,1 %TimeAway Mins  because 11,1 %away . 15,15 14,14 12,1 ][11,1 TriStar12,1 ][ 14,14 15,15  | /ame has his pager 8,1 [ON]  and can be activated by typing,2 /ctcp <NICKAWAY> page <your message here>  15,15 14,14 12,1 ][11,1 TriStar12,1 ][ 14,14 15,15 
  84. /fserver /ame has his FServer active and can be accessed by typing 11,1 !<FSERVENICK>  15,15 14,14 12,1 ][11,1 TriStar12,1 ][ 14,14 15,15 
  85. /fserver.timer /timer600 0 185 /fserver
  86.  
  87. Put this in a pop-up window under channel:
  88. Away
  89. .Start Away:/set %away $$?="Enter Reason:" | /ame is away 11,1 %away  15,15 14,14 12,1 ][11,1 TriStar12,1 ][ 14,14 15,15  | //set %away.time $atime | /setaway | /timer400 0 300 /away.4.5 | /set %time.away 0 | /timer300 0 1 /inc %time.away 1 | /away %away | /nick <NICKAWAY> | /enable #pager | /fserver.timer
  90. .End Away:/IF (%time.away >= 60) { %time_away = %time.away / 60 } | /ame is back.  He has been away since 10 %away.time  it is now 12 $atime  He has been away for 9,1 $duration(%time.away)  15,15 14,14 12,1 ][11,1 TriStar12,1 ][ 14,14 15,15  | /timer300 off | /timer400 off | /away | /nick <NICK> | /disable #pager | /timer600 off 
  91.  
  92. Now go back up and fill in anything that says <NICKAWAY> with the nick you 
  93. have for when you are away.  Fill in <FSERVENICK> with nick you have that 
  94. starts the fserver.  Fill in <NICK> with your normal nick.
  95.  
  96. What will happen is that you activate the away by right-clicking in a 
  97. channel, go to Away, and click Start Away.  You will tehn be prompted for a 
  98. reason. once you hit ok, a lot of things are going to happen:
  99. - All channels that you are on are going to get a message saying that you are
  100.   now away.
  101. - All channels that you are on are going to get a message saying that your
  102.   pager is active
  103. - About every five mins all channels that you are on are going to get a 
  104.   message saying how long you have been away
  105. - About every 5 mins all channels that you are on are going to get a 
  106.   message saying that your FServer is active.
  107.  
  108. To end the away, right-click in a channel, go to away and click end away. 
  109. This is what will happen:
  110. - All channels that you are on are going to get a message saying that you 
  111.   are no longer away.
  112. - All channels that you are on are going to get a message saying that your
  113.   pager is deactivated.
  114. - it will disable the timers for how long you have been away and the fserver.
  115.  
  116. If you have any questions I can be reached at tristar@imperium.net.  My web
  117. page is http://www.imperium.net/~tristar/.